﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace VideoCache.Aggregation
{
    public class Album
    {
        public string Title { get; set; }
        public string SubTitle { get; set; }
        public int Year { get; set; }
        public AlbumType Type { get; set; }
        public List<string> Tags { get; set; }
        public List<string> Directors { get; set; }
        public List<string> Actors { get; set; }
        public string Brief { get; set; }

        public List<Site> Sites { get; set; }

        public Album()
        {
            this.Tags = new List<string>();
            this.Directors = new List<string>();
            this.Actors = new List<string>();
            this.Sites = new List<Site>();
        }
    }

    public class Site
    {
        public string SiteName { get; set; }
        public string SiteUrl { get; set; }
        public string PlayerUrl { get; set; }

        public List<Episode> Episodes { get; set; }

        public Site()
        {
            this.Episodes = new List<Episode>();
        }
    }

    public class Episode
    {
        public int Index { get; set; }
        public int Order { get; set; }
        public string Name { get; set; }
        public string Url { get; set; }
    }

    public enum AlbumType : int
    {
        [Description("电视剧")]
        Tv = 2,
        [Description("电影")]
        Movie = 1,
        [Description("动漫")]
        Comic = 4,
        [Description("综艺")]
        TvShow = 3
    }
}